package py.com.fms.utilities;

import java.math.BigDecimal;
import java.util.Calendar;
import java.util.Date;


public class Varios {
	@SuppressWarnings("deprecation")
	public static void main(String[] args) {
		Calendar cal = Calendar.getInstance();
		// Calendar to Date Conversion
		int year = cal.get(Calendar.YEAR);
		int month = cal.get(Calendar.MONTH);
		cal.add(Calendar.DATE, 5);
		int day = cal.get(Calendar.DATE);
		System.out.println(year);
		Date date = new Date(year - 1900, month, day); // is same as date = new
		// Date();
		System.out.println("Date is : " + date);
		
		
        /*
		Date date = new Date();
		date = pDate;
		SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy");
		String stringdate = df.format(date);
		Date day = df.parse(stringdate); 
		return day; */
	}
}
